package com.mccrea.pattern.proxy.cglib;

/**
 * @Classname Client
 * @Description 测试
 * @Date 2021/5/17 0017 16:23
 * @Created by Mccrea_Gao
 */
public class Client {
    public static void main(String[] args) {
        TeacherDao teacherDao = new TeacherDao();
        ProxyFactory proxyFactory = new ProxyFactory(teacherDao);
        TeacherDao proxyInstance = (TeacherDao) proxyFactory.getProxyInstance();
        proxyInstance.teach();
    }
}
